package bb.lanxing.lib.devices.sprint.model.impl;

import android.content.Context;
import bb.lanxing.lib.devices.sprint.entity.SprintMaps;
import java.io.IOException;
import java.util.List;
import org.json.JSONException;

public class ServerSprintMapsModel extends AbstractSprintMapModel {
    public ServerSprintMapsModel(Context context) {
        super(context);
    }

    @Override
    public List<SprintMaps> loadSprintMaps() {
        try {
            List<SprintMaps> loadSprintMapsFromServer = loadSprintMapsFromServer();
            setSprintMaps(loadSprintMapsFromServer);
            return loadSprintMapsFromServer;
        } catch (IOException | JSONException e) {
            throw new RuntimeException(e);
        }
    }
}
